import { getAction, deleteAction, putAction, postAction, httpAction, downFile, downFilePost } from '@/api/manage'
const serviceName = '/jeecg-fz'

//案件列表
const getCaseList = (params)=>getAction(`${serviceName}/the_case/fzTheCase/list`,params);
const getCaseDeletelist = (params)=>getAction(`${serviceName}/the_case/fzTheCase/isDeletelist`,params);
//案件添加
const caseAdd = (params)=>postAction(`${serviceName}/the_case/fzTheCase/add`,params);
//案件编辑
const caseEdit = (params)=>putAction(`${serviceName}/the_case/fzTheCase/edit`,params);
//案件通过id查询
const getQueryById = (params)=>getAction(`${serviceName}/the_case/fzTheCase/queryById`,params);
//案件列表-通过id删除
const deleteId = (params)=>deleteAction(`${serviceName}/the_case/fzTheCase/delete`,params);
//案件列表-通过id恢复
const deleteBatchId = (params)=>deleteAction(`${serviceName}/the_case/fzTheCase/recover`,params);
//案件列表-批量恢复
const deleteBatch = (params)=>deleteAction(`${serviceName}/the_case/fzTheCase/recoverBatch`,params);
//案件导入模板下载
const caseListTemplate = (params)=>downFilePost(`${serviceName}/the_case/fzTheCase/caseListTemplate`,params);
//案件列表-导入数据
const importExcel = (params)=>postAction(`${serviceName}/the_case/fzTheCase/importCaseExcel`,params);
//案件列表-导出数据
const exportXls = (params)=>downFilePost(`${serviceName}/the_case/fzTheCase/exportXls`,params);

//案件分析报告列表-分页列表查询
const caseReportList = (params)=>getAction(`${serviceName}/fzCaseAnalysisReport/list`,params);
//案件分析报告导出-批量导出
const exportReport = (params)=>downFilePost(`${serviceName}/fzCaseAnalysisReport/exportReport`,params);
//案件分析报告列表-更新
const updateReport = (params)=>postAction(`${serviceName}/fzCaseAnalysisReport/updateReport`,params);
//案件分析预览-抓捕嫌疑人
const arrestTheSuspect = (params)=>getAction(`${serviceName}/fzTheCaseAnalysisPreview/arrestTheSuspect`,params);
//案件分析预览-全市立案情况
const caseFilingInTheWholeCity = (params)=>getAction(`${serviceName}/fzTheCaseAnalysisPreview/caseFilingInTheWholeCity`,params);
//案件分析预览-诈骗立案和财产损失
const fraudFilingAndPropertyLoss = (params)=>postAction(`${serviceName}/fzTheCaseAnalysisPreview/fraudFilingAndPropertyLoss`,params);
//案件分析预览-人民财产损失
const lossOfPeopleSProperty = (params)=>getAction(`${serviceName}/fzTheCaseAnalysisPreview/lossOfPeopleSProperty`,params);
//案件分析预览-文字
const writtenWords = (params)=>getAction(`${serviceName}/fzTheCaseAnalysisPreview/writtenWords`,params);

const generatePdf = (params)=>postAction(`${serviceName}/fzCaseAnalysisReport/generatePdf`,params);
const getSingle = (params)=>downFilePost(`${serviceName}/fzTheCaseAnalysisPreview/get_single`,params);

export {
  getCaseList,
  getCaseDeletelist,
  caseAdd,
  caseEdit,
  getQueryById,
  deleteId,
  deleteBatchId,
  deleteBatch,
  caseListTemplate,
  importExcel,
  exportXls,
  caseReportList,
  exportReport,
  updateReport,
  arrestTheSuspect,
  caseFilingInTheWholeCity,
  fraudFilingAndPropertyLoss,
  lossOfPeopleSProperty,
  writtenWords,
  generatePdf,
  getSingle
}
